how to create a attribute table